package com.yeyks.activity.param;

import com.yeyks.common.annotation.StrNotEmpty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author shuai
 * @date 2019/11/28 13:20
 */
@Data
public class ActivityPrizeOneAddParam implements Serializable {
    private static final long serialVersionUID = 6506690447760034584L;

    @StrNotEmpty(message = "活动编号不能为空")
    @ApiModelProperty(value = "活动编号")
    private String activityCode;

    @StrNotEmpty(message = "奖品名称不能为空")
    @ApiModelProperty(value = "奖品名称")
    private String prizeName;

    @StrNotEmpty(message = "奖品图片地址不能为空")
    @ApiModelProperty(value = "奖品图片地址")
    private String prizeImageUrl;

    @ApiModelProperty(value = "奖品中奖返回图片地址")
    private String prizeImageReturnUrl;

    @ApiModelProperty(value = "奖品金额(没有下级并且非优惠券类型该值必填)")
    private Integer prizePrice;

    @NotNull(message = "类型不能为空")
    @ApiModelProperty(value = "类型：1:通用类型  2:兑换码类型(有明细) 3:优惠券 4:红包 99:谢谢惠顾")
    private Integer prizeType;

    @NotNull(message = "是否有下级不能为空")
    @ApiModelProperty(value = "是否有下级,1有0无")
    private Integer whetherAppend;

    @ApiModelProperty(value = "发行量(没有下级并且非优惠券类型该值必填)")
    private Integer pubCount;

    @ApiModelProperty(value = "截至兑换日期")
    private Long endTime;

    @NotNull(message = "中奖权重不能为空")
    @ApiModelProperty(value = "百分比，中奖权重")
    private Double chancePercent;

    @ApiModelProperty(value = "当前操作人id", hidden = true)
    private Integer operatorId;
}
